import { Body, Controller, Get, Headers, Param, Post, Query } from '@nestjs/common';
import { ApiOperation, ApiProperty, ApiTags } from '@nestjs/swagger';

@ApiTags("用户")
@Controller('/v1/user')
export class UserController {
    @ApiOperation({
        description: "描述"
    })
    @Post("profile/edit")
    editProfile(@Headers('Authorization') auth: string, @Body() requestBody: object) {
    }

    @Get("mypixiv?filter=for_android")
    mypixiv(@Headers('Authorization') auth: string, @Query("user_id") uid: number) {

    }
    @ApiOperation({
        description:"插画浏览历史"
    })
    @Get("browsing-history/illusts")
    history(@Headers('Authorization') auth: string) {

    }

    @ApiOperation({
        description:"添加小说历史记录"
    })
    @Get("browsing-history/novel/add")
    addNovelHistory(@Headers('Authorization') auth: string, @Param("novel_ids") id: number[]){

    }
    @Get("novel/draft/detail")
    novelDraft(@Headers("Authorization") auth: string, @Query("draft_id") draft: number) {

    }
    @Post("workspace/edit")
    editWorkspace(
        @Headers("Authorization") auth: string,
        @Param("pc") pc: string,
        @Param("monitor") monitor: string,
        @Param("tool") tool: string, 
        @Param("scanner") scanner: string, 
        @Param("tablet") tablet: string, 
        @Param("mouse") mouse: string, 
        @Param("printer") printer: string, 
        @Param("desktop") desktop: string, 
        @Param("music") music: string, 
        @Param("desk") desk: string, 
        @Param("chair") chair: string,
        @Param("comment") comment: string
    ) {

    }
}
